﻿using System;
using System.Windows.Forms;
using OFX.Aggregator.Infrastructure;
using ApplicationClass = System.Windows.Forms.Application;

namespace OFX.Aggregator.Application
{
	internal static class Program
	{
		static Program()
		{
			SingletonContainer.Setup(new WindsorContainer());
		}

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		private static void Main()
		{
			ApplicationClass.EnableVisualStyles();
			ApplicationClass.SetCompatibleTextRenderingDefault(false);
			ApplicationClass.Run(SingletonContainer.Resolve<Form>("MainForm"));
		}
	}
}